﻿namespace PluginInterface
{
    public class DeviceInfo
    {
        /// <summary>
        /// 名称
        /// </summary>
        public string DeviceName { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        public uint Index { get; set; }

        /// <summary>
        /// 描述
        /// </summary>
        public string Description { get; set; }

        //public Driver Driver { get; set; }
        /// <summary>
        /// 驱动
        /// </summary>
        public Guid? DriverId { get; set; }

        /// <summary>
        /// 启动
        /// </summary>
        public bool AutoStart { get; set; }

        /// <summary>
        /// 变化上传
        /// </summary>
        public bool CgUpload { get; set; }

        /// <summary>
        /// 归档周期ms
        /// </summary>
        public uint EnforcePeriod { get; set; }

        /// <summary>
        /// 指令间隔ms
        /// </summary>
        public uint CmdPeriod { get; set; }

        public List<DeviceConfig> DeviceConfigs { get; set; }
        public List<DeviceVariable> DeviceVariables { get; set; }
    }
}